<%@ taglib prefix="sql_rt" uri="http://java.sun.com/jstl/sql_rt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/page/share/taglib.jsp" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>">

    <title>用户登陆</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" media="screen" href="css/login.css">

    <script language="javascript" type="text/javascript">
    </script>

</head>

<body>
<div id="top">
    <div id="logo">

    </div>
</div>
<div id="pic"></div>
<div id="login">
    <form method="post" action="${pageContext.request.contextPath}/j_spring_security_check">
        <table>
            <tr>
                <td>
                    用户名：<br/><input id="j_username" type="text" tabindex="1" name="j_username" value=""/>
                </td>
            </tr>
            <tr>
                <td>
                    密 码：<br/><input id="j_password" type="password" tabindex="1" name="j_password" value=""/>
                    <%--默认两周 依赖cookie--%>
                </td>
            </tr>
            <tr>
                <td style="height: 20px;">
                    <p>
                    <input type="checkbox" name="_spring_security_remember_me" id="check" />
                    <span>两周之内不必登陆</span>
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <button type="submit" id="stb" class="btn">登 录</button>&nbsp&nbsp

                    <div id="supera">
                        <a href="page/person/register.jsp">&nbsp注册&nbsp</a>
                        <a href="page/person/forgotPasswordMes.jsp">忘记密码&nbsp</a>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="error ${param.error == true ? '' : 'hide'}" id="false" style="color: red;">
                        登陆失败<br>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="bottom"></div>
</body>
</html>
